<%@ page contentType="text/html;charset=GBK" %>
<%@ page import="java.util.*" %>
<%@ page import="com.ionglobal.db.*" %>
<%@ page import="com.ionglobal.lib.*" %>
<%@ page import="com.ionglobal.misc.*" %>

<%@ include file="../init_include.jsp" %>

<html>
<head>
<title><%=Language.getNameByCode("sys.sysop.search","Search DepartMent")%></title>
<meta http-equiv="Content-Type" content="text/html; charset=<%=Language.getHTMLLanguageStr()%>">
<link rel="stylesheet" href="../css.css" type="text/css">
<script Language="JavaScript" src="../script/Ion_Show.js"></script> 
<script language="javascript">
	function checkForm() {
		whereClause="";
		if(document.formIon.id.value!="")
			whereClause+=" and sys_depart.id="+document.formIon.id.value;
		if(document.formIon.name.value!="")
			whereClause+=" and sys_depart.name like '%"+document.formIon.name.value+"%'";
		if(document.formIon.code.value!="")
			whereClause+=" and code like '%"+document.formIon.code.value+"%'";
		whereClause+=" ";
		whereClause=whereClause.substring(4);
		setWhereClause(whereClause);
		closewindow(0);			
		close();
	}
</script>
</head>
<%	
	Sysop sysop=(Sysop)session.getAttribute("sysop");					
%>
<body class="bgcolor_title_tr">
<table width="100%" border="0" cellspacing="1" cellpadding="2" class="input_title">
  <tr>
    <td><%=Language.getNameByCode("sys.depart.search","Search Depart")%></td>
  </tr>
</table>
<hr>
<table border="0" cellspacing="1" cellpadding="2" bgcolor="#666666" width="90%">
	<form method="post" name="formIon" action="?" onSubmit="return checkForm();">
  <tr class="bgcolor_title_tr"> 
    <td class="input_title" align="right"><%=Language.getNameByCode("sys.depart.id","Department ID")%>:</td>
    <td><input type="text" name="id" maxlength="20" size="20" value=""></td>
  </tr>
  <tr class="bgcolor_title_tr"> 
    <td class="input_title" align="right"><%=Language.getNameByCode("sys.depart.name","Department Name")%>:</td>
    <td><input type="text" name="name" maxlength="60" size="30" value=""></td>
  </tr>
  <tr class="bgcolor_title_tr"> 
    <td class="input_title" align="right"><%=Language.getNameByCode("sys.depart.code","Department Code")%>: </td>
    <td> 
      <input type="text" name="code" maxlength="60" size="30" value="">
    </td>
  </tr>
</table>
<input type="submit" name="Submit" value="<%=Language.getNameByCode("sys.Submit","Submit")%>">	
<input type="reset" name="Submit" value="<%=Language.getNameByCode("sys.Reset","Reset")%>">	
<input type="button" name="close" value="<%=Language.getNameByCode("sys.Close","Close")%>" onClick="closewindow();">	
</form>
</body>
</html>
<%@ include file="../init_free.jsp" %>